package com.rui.component;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/4/17.
 */
@Component
public class PrintSchedule {

    Logger logger = LoggerFactory.getLogger(PrintSchedule.class);

//    @Scheduled(cron = "0/5 * * * * ?")
    public void component(){
        logger.info("this is task");
    }
}
